﻿/********************************************************************************/
// <copyright file="MemberGroupFactory.cs" company="Asia E-Business Solutions">
//     Copyright © 2012. All right reserved
// </copyright>
// <history>
//     <change who="Phuoc Le" date="24/12/2012 3:01:30 PM">Created</change>
// </history>
/********************************************************************************/

using System;
using System.Collections.Generic;
using LINQ = JLL.China.Infrastructure.Repositories.LINQ2SQL;

namespace JLL.China.Infrastructure.Repositories.MembserGroup
{
    public class MemberGroupFactory
    {
        public static Model.MemberGroup FromLINQObject(LINQ.MemberGroup group)
        {
            if (group == null)
            {
                return null;
            }
            else
            {
                var model = new Model.MemberGroup
                {
                    ID = (int)group.MemberGroup_ID,
                    GroupName = group.GroupName
                };
                return model;
            }
        }
    }
}
